package com.docker.core.route;

import com.docker.core.interceptor.InterceptorToken;
import com.docker.manege.container.ContainerController;
import com.docker.manege.image.ImagesController;
import com.docker.manege.log.LoggerController;
import com.docker.manege.server.DockerServerController;
import com.docker.sys.app.AppController;
import com.docker.sys.area.AreaController;
import com.docker.sys.dept.DeptController;
import com.docker.sys.dic.DicController;
import com.docker.sys.menu.MenuController;
import com.docker.sys.permission.PermissionController;
import com.docker.sys.role.RoleController;
import com.docker.sys.role.roleMenu.RoleMenuController;
import com.docker.sys.role.rolePerm.RolePermController;
import com.docker.sys.user.InsideUserController;
import com.docker.sys.user.insideUserRole.InsideUserRoleController;
import com.docker.upload.UploadController;
import com.jfinal.config.Routes;

/**
 * @Author ldl
 * @Create 2020/12/02 002 14:27
 */
public class TokenRoute extends Routes {

    @Override
    public void config() {
        addInterceptor(new InterceptorToken());

        add("api/docker/container", ContainerController.class);
        add("api/docker/image", ImagesController.class);
        add("api/docker/logger", LoggerController.class);
        add("api/docker/server", DockerServerController.class);

        // =========================系统相关===============================
        add("/api/sys/app", AppController.class);
        add("/api/sys/area", AreaController.class);
        add("/api/sys/dept", DeptController.class);
        add("/api/sys/dic", DicController.class);
        add("/api/sys/menu", MenuController.class);
        add("/api/sys/perm", PermissionController.class);
        add("/api/sys/role/menu", RoleMenuController.class);
        add("/api/sys/role/perm", RolePermController.class);
        add("/api/sys/role", RoleController.class);
        add("/api/sys/user/inside/role", InsideUserRoleController.class);
        add("/api/sys/user/inside", InsideUserController.class);

        // =========================文件上传===============================
        add("/api/upload", UploadController.class);

    }

}
